package com.lam.framework.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.lam.common.utils.JsonUtil;

/**
 * 全局序列化配置类
 */
@Configuration
public class JacksonConfig {
 
    /**
     * 创建Jackson对象映射器
     *
     * @param builder Jackson对象映射器构建器
     * @return ObjectMapper
     */
    @Bean
    public ObjectMapper getJacksonObjectMapper() {
    	
        return JsonUtil.createObjectMapper(false);
    }
}
